<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>输出较小的数</title>
    <script>
        var x=prompt("请输入第一个数");
        var y=prompt("请输入第二个数");
        if(parseInt(x)>parseInt(y)){
            alert(parseInt(y))
        }
        if(parseInt(x)<parseInt(y)){
            alert(parseInt(x))
        }
        if(parseInt(x)==parseInt(y)){
            alert("相等")
        }
    </script>
</head>
<body>
    
</body>
</html>